package com.bc004346.travelus;

import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.view.View;

import com.bc004346.travelus.fragment.TripMeDestinationsFragment;
import com.bc004346.travelus.model.abstracts.SingleFragmentActivity;

/**
 * Created by Renats on 12/8/2014.
 * A list of favorite destinations
 */
public class TripMeDestinationsActivity extends SingleFragmentActivity {
    @Override
    protected Fragment getFragment() {
        return new TripMeDestinationsFragment();
    }

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setTitle("Add favorite destinations");
        mSwipeRefresh.setRefreshing(false);
        mTopProgressBar.setVisibility(View.INVISIBLE);
    }

    @Override
    public void refresh() {
        mSwipeRefresh.setRefreshing(false);
        mTopProgressBar.setVisibility(View.INVISIBLE);
    }
}
